import React from 'react'
import Admin from './view/admin'
import {Switch,Route,Redirect} from "react-router-dom"
import { store } from './store/index'
import {Provider} from "react-redux"
import "./App.css"
export default function App() {
  return (
    <div>
      <Provider store={store}>
      <Switch>
        <Route path='/admin' component={Admin}></Route>
        <Redirect from="/" to="/admin"></Redirect>
      </Switch>
      </Provider>
    </div>
  )
}
